<!doctype html>
<html>
 <head>
  <meta charset="UTF-8">  
  <title>菜谱</title>
 </head>
 <body>
 <?php 
@$row = $data['food'][0];

  ?>
<form method="post"  action="ind.php?c=video&m=update&id=$data['id']" enctype="multipart/form-data" >
<table align="center" border="1" width=500>
<caption>修改菜谱信息</caption>

<tr>
  <td>菜名：</td>
  <td><input type="text" name="name" size=30  value=<?php  echo  $row['name']; ?> >
  </td>
</tr>

<tr>
  <td>菜系：</td>
   <td><!-- <input type="text" name="tid" size=30  value=<?php  echo $row['typename']; ?> > -->
    <select name="tid">
                <option value="0">请选择</option>
         <option value="1">川菜</option>
        <option value="2">粤菜</option>
        <option value="3">湘菜</option>
        <option value="4">鲁菜</option>
        <option value="5">东北菜</option>

      </select>
  </td>
</tr>

<tr>
  <td>图片:</td>
  <td><input type="file" name="pic" size=30  value=<?php  echo $row['pic']; ?> ></td>
</tr>

<tr>
  <td>用料:</td>
  <td><input type="text" name="yl" size=30  value=<?php  echo $row['yl']; ?> ></td>
</tr>


<tr>
  <td>做法</td>
  <td><input type="text" name="zf" size=30  value=<?php  echo $row['zf']; ?> ></td>
</tr>

<tr>
<td width=150></td>
<td>
<input type="submit" value="更新">
<input type="reset" value="重置">
</td>
</tr>
</table>
</form>
 </body>
</html>
